var dic_project_type = {};

var dic_project_status = {};

var dic_department = {};

var dic_user_role = {};


/**
 * 获取部门字典信息
 */
function getDepartment(){
	$.ajax({
		url : "../director/getValueByCode",
		data : {
			"dic_code":"department"
		},
		async: false,
		type: 'POST',
		success: function(data){
			dic_department = data.dicMap;
		}
	});
}

/**
 * 获取项目类型字典信息
 */
function getprojectType(){
	$.ajax({
		url : "../director/getValueByCode",
		data : {
			"dic_code":"project_type"
		},
		type: 'POST',
		async: false,
		success: function(data){
			dic_project_type = data.dicMap;
		}
	});
}

/**
 * 获取项目状态字典信息
 * @returns {___anonymous_project_status}
 */
function getProjectStatus(){
	$.ajax({
		url : "../director/getValueByCode",
		data : {
			"dic_code":"project_status"
		},
		async: false,
		type: 'POST',
		success: function(data){
			dic_project_status = data.dicMap;
		}
	});
	
}

/**
 * 获取角色字典信息
 * @returns {___anonymous_project_status}
 */
function getUserRole(){
	$.ajax({
		data : {
			"dic_code":"user_role"
		},
		type: 'POST',
		async: false,
		success: function(data){
			dic_user_role = data.dicMap;
		}
	});
	
}


/**
 *  获取字典信息
 */
function getDicValues(){
	// 获取项目状态字典信息
	getProjectStatus();
	// 获取项目类型字典信息
	getprojectType();
	// 获取部门字典信息
	getDepartment();
	// 角色字典信息
	getUserRole();
}